<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" jwcid="shell">
<link rel="alternate" type="application/rss+xml" href="/rss" title="RSS feed for freebookie.org events">
<body jwcid="@Body">
	<div id="wrap"><!-- wrap starts here -->
		<div jwcid="header@Any">
			<div id="loadingIndicator" style="display: none"><span jwcid="@Insert" value="message:border.loading"/></div>
			<div id="loginLink">
				<span jwcid="@If" condition="ognl:authenticationContext.userAuthenticated">
					<span jwcid="@Insert" value="message:border.user"/>: <span jwcid="@Insert" value="ognl:authenticationContext.user.username"/>
					(<span jwcid="@bookie:InsertNumber" value="ognl:authenticationContext.user.account.balance"/>)
					<span jwcid="@If" condition="ognl:authenticationContext.user.account.refillable">
						<span jwcid="@DirectLink" listener="listener:refill" async="true">
							<span jwcid="@Insert" value="message:border.link.refill"/>
						</span>
					</span>
					<span jwcid="@DirectLink" listener="listener:logout">
						<span jwcid="@Insert" value="message:border.link.logout"/>
					</span>
				</span>
			    <span jwcid="@Else">
						<span id="loginbutton"><a href="#" title="message:border.link.login">&nbsp;</a></span>
						<br />
						<a href="#" onclick="dojo.widget.byId('loginDialog').show();return false;">
							<span jwcid="@Insert" value="message:border.link.login"/>
						</a>
						<span jwcid="@Insert" value="message:border.or"/>
						<a jwcid="registerLink"><span jwcid="@Insert" value="message:border.link.register"/></a>
						<span jwcid="@Insert" value="message:border.toaccess"/>
						<b><span jwcid="@Insert" value="message:border.mybookie"/></b>
						<br/>
						<a jwcid="@PageLink" page="ForgotPassword">
							<span jwcid="@Insert" value="message:border.cannot.access.account"/>
						</a>
			    </span>
			</div>		
			<a jwcid="@PageLink" page="Home"><h1 id="logo">Free<span>Bookie</span></h1></a>
			<h2 id="slogan"><span jwcid="@Insert" value="message:border.slogan"/></h2>
		</div>
		
		<span jwcid="menu"/>	
					
		<div id="sidebar" >	
			<span jwcid="@RenderBlock" block="ognl:menuBlock"/>
			<h1>Pages</h1>
			<ul class="sidemenu">
				<li jwcid="@For" source="ognl:components.menu.subItems" value="ognl:subItem" element="li">
					<span jwcid="@If" condition="ognl:container.pageName==subItem.page">
						<span jwcid="@Insert" value="ognl:messages.getMessage(subItem.key)"/>
					</span>
					<span jwcid="@Else">
						<a jwcid="@PageLink" page="ognl:subItem.page">
							<span jwcid="@Insert" value="ognl:messages.getMessage(subItem.key)"/>
						</a>
					</span>
				</li>			
			</ul>
		</div>
		<div id="main">
			<div jwcid="borderErrors@Any"><span jwcid="@bookie:ShowErrors" delegate="ognl:delegate"/></div>
			<!-- ##### BEGIN CONTENT ##### -->
			<span jwcid="@RenderBody">
				<p>Page content goes here.</p>
			</span>
			<!-- ##### END CONTENT ##### -->			
		</div>	
	
		<div id="rightbar">
			<p>
			<span jwcid="@RenderBlock" block="ognl:rightBlock"/>
		</div>		
	</div><!-- wrap ends here -->	
	
<!-- footer starts here -->	
	<div id="footer">
		<div id="footer-content">
		<div id="footer-right">
			<a jwcid="@PageLink" page="Home">Home</a> | <a href="http://freebookie.wordpress.com/">Blog</a> | <a href="/rss">RSS/Atom Feed</a>	
		</div>
		
		<div id="footer-left">
			&copy; Copyright 2007 <strong>FreeBookie</strong>&nbsp;	 
			Design by: <a href="http://www.styleshout.com/">styleshout</a>
		</div>
		</div>	
	</div>
	<div style="display: none;">
		<span jwcid="login"/>
	</div>
	<script type="text/javascript">
		dojo.require("tapestry.fx");
		dojo.require("dojo.lfx");
		tapestry.fx.attachAjaxStatus("loadingIndicator");
	</script>	
	<span jwcid="emptyBlock"/>
	<!--  Google Analytics Start -->
	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
	</script>
	<script type="text/javascript">
	_uacct = "UA-949825-2";
	urchinTracker();
	</script>
</body>
</html>
